import request from '@/utils/request.js'


export function getTaskList(data){
	return request({
		url:'/record/task/my/list',
		method:'get',
		data:data
	})
}

export function addTask(data){
	return request({
		url:'/record/task',
		method:'post',
		data:data
	})
}

export function disableOrEnableTask(taskId){
	return request({
		url:'/record/task/disableOrEnableTask/'+taskId,
		method:'put'
	})
}

export function deleteTask(data){
	return request({
		url:'/record/task/'+data,
		method:'delete'
	})
}

export function getTask(data){
	return request({
		url:'/record/time/'+data,
		method:'get'
	})
}